<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
	</body>
	<script type="text/javascript">
		function ajax(){
			var xhr = new XMLHttpRequest();
			xhr.onreadystatechange = function(){
				if(xhr.readyState==4){
					console.log(xhr.responseText)
					console.log(JSON.parse(xhr.responseText))
				}
			}
			 //设置Content-Type 

			xhr.open("get","http://route.showapi.com/341-1?showapi_appid=45521&showapi_sign=1d8f16eab6a34f84b6a4c9f45c776b90",true);
			xhr.send(null)
		}
		
		ajax()
	</script>
</html>
